﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 数据上下文
    /// </summary>
    public class ApiDbContext:DbContext
    {
        public ApiDbContext(DbContextOptions<ApiDbContext> opts) : base(opts)
        {

        }
        /// <summary>
        /// 人员信息表映射
        /// </summary>
        public DbSet<People> People { get; set; }

        /// <summary>
        /// 职工信息表
        /// </summary>
        public DbSet<Employee> Employee { get; set; }

        /// <summary>
        /// 走访记录表
        /// </summary>
        public DbSet<Interview> Interview { get; set; }
    }
}
